//
//  DatabaseViewController.h
//  Database
//
//  Created by Allan Kuan on 12-07-06.
//  Copyright (c) 2012 UGuideUs. All rights reserved.
//
//  Base code structure from Techotopia, with modifications.

#import <UIKit/UIKit.h>
#import "DatabaseAccessor.h"
#import "CASVieController.h"
#import "SBJSON.h"
@interface CommentViewController : UIViewController 
{
    
    UILabel *location;

    UITextField *comment;
    
    UILabel *status;
    
    UITextView *displayAllComments;
    
    
    //picker
    UIPickerView  *picker;
    NSArray *countryNames;
    NSString *result;
    UIToolbar *pickerBar;
    UIButton *showPicker;

}

@property (retain, nonatomic) IBOutlet UITextView *displayAllComments;

@property (strong, nonatomic) IBOutlet UILabel *location;

@property (strong, nonatomic) NSArray *placeNames;
@property (strong, nonatomic) NSString *result;

- (IBAction)getTheCommentsForSpecificLocation:(id)sender;


//picker
@property (strong, nonatomic) IBOutlet UIPickerView *picker;
@property (strong, nonatomic) IBOutlet UIToolbar *pickerBar;
@property (strong, nonatomic) IBOutlet UIButton *showPicker;
-(IBAction)revealPicker:(id)sender;
-(IBAction)hidePicker:(id)sender;

- (IBAction)LocationToAddComment:(UIButton *)sender;

@end